import java.awt.event.*;
import javax.swing.*;
/** Just a Frame
*/
public class JFrameDemo extends JFrame {
/**
	 * 
	 */
	private static final long serialVersionUID = 2379769279642872020L;
boolean unsavedChanges = false;
JButton quitButton;
/** Construct the object including its GUI */
public JFrameDemo( ) {
super("JFrameDemo");
getContentPane( ).add(quitButton = new JButton("Exit"));

quitButton.addActionListener(new ActionListener( ) {
public void actionPerformed(ActionEvent e) {
setVisible(false);
dispose( );
System.exit(0);
}
});
addWindowListener(new WindowAdapter( ) {
public void windowClosing(WindowEvent e) {
setVisible(false);
dispose( );
System.exit(0);
}
});
pack( );
}
}